package com.han.demo.event;

import com.han.demo.entity.User;
import lombok.Data;
import org.springframework.context.ApplicationEvent;

/**
 * @author hanjl
 * @Description 用户事件
 * @ClassName UserEvent
 * @createTime 2021/11/17 15:06
 */

public class UserEvent extends ApplicationEvent {

    private String name = "hanjiale";

    public UserEvent(Object source){
        super(source);
    }

    public UserEvent(Object source,String name){
        super(source);
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
